﻿using AutoMapper;
using SOEI.Solution.DomainEntities.Organization;

namespace SOEI.Solution.Integratedes.Organization.Mapper
{

    /// <summary>
    /// 配置Member的AutoMapper映射
    /// 前往 <see cref="SolutionApplicationModule"/>的AbpAutoMapper配置方法下添加以下代码段
    /// </summary>
    public static class OrganizationCoreAutoMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap<OEconomyOrgani, EconomyOrgani>();
            configuration.CreateMap<EconomyOrgani, OEconomyOrgani>();

            // 机构人员和人员变更中的相互转换
            configuration.CreateMap<OEconomyPerson, OEconomyPersonChange>();
            configuration.CreateMap<OEconomyPersonChange, OEconomyPerson>();
        }
    }
}